package algocity.controller;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.AbstractButton;

import algocity.modelo.ModeloObservable;

public class BotonSelectServicioListener extends MouseAdapter{

	private ModeloObservable modelo;
	
	public BotonSelectServicioListener(ModeloObservable modelo){
		this.modelo = modelo;
	}
	
	public BotonSelectServicioListener(){
	}
	
	public void mousePressed(MouseEvent e){
		try {
			System.out.println("Select: "+e.getSource().toString());
			modelo.selectServicio(e.getSource().toString());
		} catch (Exception e1) {
			e1.printStackTrace();
		}
	}
}
